//
//  SEGActivityDetailModel.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/8/3.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGActivityDetailModel.h"

@implementation SEGActivityDetailModel

- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _actPic = [NSArray array];
        _praiseList = [NSArray array];
        _joinList = [NSArray array];
        _sharePic = @"";
        _eventValue = @"";
        _actName = @"";
        _shareTitle = @"";
        _endTime = @"";
        _actId = @"";
        _joinCount = @"";
        _rulesDesc = @"";
        _actStatus = @"";
        _shareDigest = @"";
        _triggerEvent = @"";
        _actObj = @"";
        _actType = @"";
        _isLikeed = @"";
        _isReview = @"";
        _praiseCount = @"";
        _startTime = @"";
        _joinObj = [NSArray array];
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}

- (void)setActPic:(NSArray*)actPic{
    NSMutableArray *arrM = [NSMutableArray array];
    [actPic enumerateObjectsUsingBlock:^(NSString* obj, NSUInteger idx, BOOL* _Nonnull stop) {
        if ([obj length] > 0) {
//            [arrM addObject:[NSString stringWithFormat:@"%@%@", kClientImageRootURL, obj]];
            [arrM addObject: obj];
        }
    }];
    _actPic = [arrM copy];
}
- (void)setPraiseList:(NSArray*)praiseList{
    _praiseList = [praiseList copy];
}
- (void)setJoinList:(NSArray*)joinList{
    _joinList = [joinList copy];
}
- (void)setJoinObj:(NSArray<NSString *> *)joinObj
{
    _joinObj = [joinObj copy];
}

- (void)setSharePic:(NSString*)sharePic{
    _sharePic = [[SEGUtils ValueToString:sharePic]copy];
}
- (void)setEventValue:(NSString*)eventValue{
    _eventValue = [[SEGUtils ValueToString:eventValue]copy];
}
- (void)setActName:(NSString*)actName{
    _actName = [[SEGUtils ValueToString:actName]copy];
}
- (void)setShareTitle:(NSString*)shareTitle{
    _shareTitle = [[SEGUtils ValueToString:shareTitle]copy];
}
- (void)setEndTime:(NSString*)endTime{
    _endTime = [[SEGUtils ValueToString:endTime]copy];
}
- (void)setActId:(NSString*)actId{
    _actId = [[SEGUtils ValueToString:actId]copy];
}
- (void)setJoinCount:(NSString*)joinCount{
    _joinCount = [[SEGUtils ValueToString:joinCount]copy];
}
- (void)setRulesDesc:(NSString*)rulesDesc{
    _rulesDesc = [[SEGUtils ValueToString:rulesDesc]copy];
}
- (void)setActStatus:(NSString*)actStatus{
    _actStatus = [[SEGUtils ValueToString:actStatus]copy];
}
- (void)setShareDigest:(NSString*)shareDigest{
    _shareDigest = [[SEGUtils ValueToString:shareDigest]copy];
}
- (void)setTriggerEvent:(NSString*)triggerEvent{
    _triggerEvent = [[SEGUtils ValueToString:triggerEvent]copy];
}
- (void)setActObj:(NSString*)actObj{
    _actObj = [[SEGUtils ValueToString:actObj]copy];
}
- (void)setActType:(NSString*)actType{
    _actType = [[SEGUtils ValueToString:actType]copy];
}
- (void)setIsLikeed:(NSString*)isLikeed{
    _isLikeed = [[SEGUtils ValueToString:isLikeed]copy];
}
- (void)setIsReview:(NSString*)isReview{
    _isReview = [[SEGUtils ValueToString:isReview]copy];
}
- (void)setPraiseCount:(NSString*)praiseCount{
    _praiseCount = [[SEGUtils ValueToString:praiseCount]copy];
}
- (void)setStartTime:(NSString*)startTime{
    _startTime = [[SEGUtils ValueToString:startTime]copy];
}

@end
